IMPLEMENTATION OF TPSA IN THE MATHEMATICA CODE LieMath
نویسنده
چکیده
The Lie Algebra package LieMath written in the Mathematica language constructs the beamline map in a singleexponent Lie generator form. The algorithm (a BCH-based map concatenation) has been recently enhanced with Truncated Power Series Algebra (TPSA) techniques. The polynomials produced by the series expansion of the Hamiltonian are replaced with arrays of coefficients (derivative structures) and the Poisson bracket and BCH are defined as operations on such structures. We have confirmed the statement that using automatic differentiation instead of symbolic operations increases the speed by least an order of magnitude. The code is equipped with a MAD parser and a normal form block allowing it to extract nonlinear chromaticity and amplitude detuning. The notebook was applied in FFAG studies and may be useful for the linear collider final focus or collimation systems.
منابع مشابه
Kranc: a Mathematica package to generate numerical codes for tensorial evolution equations
We present a suite of Mathematica-based computer-algebra packages, termed “Kranc”, which comprise a toolbox to convert certain (tensorial) systems of partial differential evolution equations to parallelized C or Fortran code for solving initial boundary value problems. Kranc can be used as a “rapid prototyping” system for physicists or mathematicians handling very complicated systems of partial...
متن کاملKranc: a Mathematica application to generate numerical codes for tensorial evolution equations
We present a suite of Mathematica-based computer-algebra packages, termed “Kranc”, which comprise a toolbox to convert (tensorial) systems of partial differential evolution equations to parallelized C or Fortran code. Kranc can be used as a “rapid prototyping” system for physicists or mathematicians handling very complicated systems of partial differential equations, but through integration int...
متن کاملImpact of liver function on serum level of prostate specific antigen (PSA) in cirrhotic patients, before and after receiving liver transplant.
Introduction: Prostate cancer is the most prevalent malignancies among males. Prostate specific antigen (PSA) is used for screening of this malignancy. Serum levels of PSA is influenced by liver function. This study evaluate variations of serum levels of PSA amongst cirrhotic patients, before and after receiving liver transplantation. Material and methods: all cirrhotic males older than 45 y...
متن کاملمحدوده مرجع ویژه سن برای آنتیژن سرمی اختصاصی پروستات (PSA) در مردان ایرانی
Background: Prostate-Specific Antigen (PSA), also known as gamma-seminoprotein or kallikrein-3 (KLK3), is the best marker for early diagnosis of prostate cancer. Since age and race are affecting PSA levels, determining age-specific reference ranges of PSA in every community is necessary for increasing the efficiency rate of PSA. The aim of the present study was to evaluate the normal distributi...
متن کاملA Mathematica interface for FormCalc-generated code
This note describes a Mathematica interface for Fortran code generated by Form-Calc. The interfacing code is set up automatically so that only minuscule changes in the driver files are required. The interface makes a function to compute the cross-section or decay rate available in Mathematica. This function depends on the model parameters chosen for interfacing in the Fortran code.
متن کامل